import com.chai.config.SpringConfig;
import com.chai.service.Impl.UserServiceImpl;
import com.chai.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext apc = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService bean = apc.getBean(UserService.class);
        bean.save();
    }
}
